package com.tiantianfresh.admin.service;

import com.tiantianfresh.model.pojo.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityService {
    //查询全部Commodity,返回list集合
    List<Commodity> selectAll(Integer crid);
    //根据id查询Commodity
    Commodity queryCommodityById( int id);
    //根据id删除一个Commodity
    boolean deleteCommodityById( int id);
    //添加一个Commodity
    boolean addCommodity(Commodity commodity);
    //更新Commodity
    boolean updateCommodity(Commodity commodity);
}
